import LinkCardItem from './LinkCardItem';
import isEqual from 'lodash/isEqual';

class UsedToDoList extends React.Component{
//	shouldComponentUpdate(nextProps) {
//      return !isEqual(this.props.wfbeans, nextProps.wfbeans)
//			|| !isEqual(this.props.importDataShow, nextProps.importDataShow)
//			|| this.props.showBeagenters !== nextProps.showBeagenters
//			|| this.props.showImportWf !== nextProps.showImportWf;
//  }
	render(){
		const {wfbeans,importDataShow,wfOperateInfo,actions,user,cardItemParams} = this.props;
		return (
			<div className="usedtodo">
				<ul>
					{
						wfbeans.map((wfbean,i) => 
							<li>
								<LinkCardItem ecId={`${this && this.props && this.props.ecId || ''}_LinkCardItem@435hov@${i}`} cardItemParams={cardItemParams} user={user} wfbean={wfbean} importDataShow={importDataShow} iscommon={true} num={i} wfOperateInfo={wfOperateInfo} actions={actions} />
							</li>
						)
					}
				</ul>
			</div>
		)
	}
}

export default UsedToDoList